home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12949 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.lang.c++
  2. Path: ncrgw2.ncr.com!ncrhub2!lznj2!lziss3!netnews
  3. From: arnold.bursian@germany.ncr.com (Arnold Bursian)
  4. Subject: Re: Opening Win '95/NT filenames in MSVC++ 4.0 -- Problems
  5. Message-ID: <DooGos.LuD@lziss3.lincroftnj.ncr.com>
  6. Sender: netnews@lziss3.lincroftnj.ncr.com (51[news]-Netnews Admin)
  7. Reply-To: arnold.bursian@germany.ncr.com
  8. Organization: AT&T GIS Lincroft, NJ USA
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. References: <graham.3.000A5A2A@faculty.law.duke.edu>
  11. Date: Fri, 22 Mar 1996 16:32:48 GMT
  12.  
  13. On Mon, 18 Mar 1996 10:21:03, graham@faculty.law.duke.edu wrote:
  14.  
  15. >I am trying to execute the following line of code on my Win95 machine.  I'm 
  16. >using MSVC++ 4.0, and I've compiled it as an MS-DOS, Quick-Win, and 
  17. >Windows application.  (The compiler and AppWizard do not present me with a 
  18. >"console application" option.)
  19.  
  20. >    if (_access ("C:\\work\\lawsnews.html", 0) < 0) { 
  21.  
  22. >   The preceding call to _access always returns less than 0--despite the fact 
  23. >that I know the file exists.  Short filenames (MS-DOS filenames) work fine:
  24.  
  25. >    if (_access ("C:\\work\\will.wrk", 0) < 0) {
  26.  
  27. >   I can't open or verify the existence of files with non-MS-DOS names.  Could 
  28. >anyone redirect my wayward steps?  Many thanks!!
  29.  
  30. >Tony Graham
  31. >graham@faculty.law.duke.edu
  32.  
  33. I looked up the documentation and it doesn't say anything about this
  34. subject. Maybe you should use:
  35.   if (_access ("C:\\work\\lawsne~1.htm", 0) < 0) {
  36. instead.
  37.  
  38. Greeting, Arnold 8-)
  39.  
  40.  
  41.